package com.ruoyi.market.model.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class CondiInfoVO {

    public CondiInfoVO() {
    }

    public CondiInfoVO(String name, String elemName) {
        this.name = name;
        this.elemName = elemName;
        this.childInfoList = new ArrayList<>();
    }

    public CondiInfoVO(String name, String elemName, List<CondiChildInfoVO> childInfoList) {
        this.name = name;
        this.elemName = elemName;
        this.childInfoList = childInfoList;
    }

    public void setChildInfoVo(CondiChildInfoVO condiChildInfoVO){
        this.childInfoList.add(condiChildInfoVO);
    }

    private String name;

    /**
     * 表单提交值的时候 获取的那个参数
     */
    private String elemName;

    private List<CondiChildInfoVO> childInfoList;
}
